package com.sunny.design.strategy.exam1;

/**
 * 促销活动执行类
 *
 * @author Sunny
 * @date 2020/1/4 19:36
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void execute() {
        promotionStrategy.doPromotion();
    }
}
